package com.gzc.pm.dao
{
	import com.gzc.pm.bean.AlarmRuleBean;
	import com.gzc.pm.net.MyRoFactory;

	public class AlarmRuleDao
	{
		public function AlarmRuleDao()
		{
		}
		
		public function getByUserId(userId:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('alarmRuleRo', resultHandler, '加载预警规则', 'getByUserId', userId);
		}
		
		public function updateByUserId(bean:AlarmRuleBean, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('alarmRuleRo', resultHandler, '修改预警规则', 'updateByUserId', bean);
		}
		
		public function insert(bean:AlarmRuleBean, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('alarmRuleRo', resultHandler, '添加预警规则', 'insert', bean);
		}
	}
}